package com.aspose.cells;

class zbkb extends zck {
   private com.aspose.cells.b.a.b.zq k;

   zbkb(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      this.k = new com.aspose.cells.b.a.b.zq(var1.f(), var1.g(), var1.h(), var1.i());
      float var2 = this.g;
      float var3 = this.h;
      float var4 = this.e.v().h();
      float var5 = this.e.v().i();
      float var6 = 0.0F;
      float var7 = 0.0F;
      float var8 = 0.0F;
      float var9 = 0.0F;
      float var10 = 0.0F;
      float var11 = 0.0F;
      float var12 = 0.0F;
      float var13 = 0.0F;
      float var14 = Math.min(var4, var5);
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var6 = var14 * (com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F);
            var7 = var14 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(1)) / 100000.0F;
            var8 = var14 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(2)) / 100000.0F;
            var9 = var4 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(3)) / 100000.0F;
         } else {
            var6 = var14 * 0.25F;
            var7 = var14 * 0.25F;
            var8 = var14 * 0.25F;
            var9 = var4 * 0.64616F;
         }
      } else {
         var6 = var14 * 0.25F;
         var7 = var14 * 0.25F;
         var8 = var14 * 0.25F;
         var9 = var4 * 0.64616F;
      }

      var11 = var4 - var8;
      var12 = var5 / 2.0F - var7;
      var13 = var5 / 2.0F - var6 / 2.0F;
      com.aspose.cells.b.a.b.a.ze var15 = new com.aspose.cells.b.a.b.a.ze();
      com.aspose.cells.b.a.b.zo[] var16 = new com.aspose.cells.b.a.b.zo[11];
      switch(this.e.b) {
      case 1:
      case 2:
         var16[0] = new com.aspose.cells.b.a.b.zo(var2, var3);
         var16[1] = new com.aspose.cells.b.a.b.zo(var2 + var9, var3);
         var16[2] = new com.aspose.cells.b.a.b.zo(var2 + var9, var3 + var13);
         var16[3] = new com.aspose.cells.b.a.b.zo(var2 + var11, var3 + var13);
         var16[4] = new com.aspose.cells.b.a.b.zo(var2 + var11, var3 + var12);
         var16[5] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5 / 2.0F);
         var16[6] = new com.aspose.cells.b.a.b.zo(var2 + var11, var3 + var5 - var12);
         var16[7] = new com.aspose.cells.b.a.b.zo(var2 + var11, var3 + var5 - var13);
         var16[8] = new com.aspose.cells.b.a.b.zo(var2 + var9, var3 + var5 - var13);
         var16[9] = new com.aspose.cells.b.a.b.zo(var2 + var9, var3 + var5);
         var16[10] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5);
         var15.b(var16);
         this.k = new com.aspose.cells.b.a.b.zq(var16[0], new com.aspose.cells.b.a.b.zt(var16[1].d() - var16[0].d(), var5));
         break;
      case 3:
      case 4:
         var16[0] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var9, var3);
         var16[1] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3);
         var16[2] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5);
         var16[3] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var9, var3 + var5);
         var16[4] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var9, var3 + var5 - var13);
         var16[5] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var5 - var13);
         var16[6] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var5 - var12);
         var16[7] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5 / 2.0F);
         var16[8] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var12);
         var16[9] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var13);
         var16[10] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var9, var3 + var13);
         var15.b(var16);
      }

      return var15;
   }

   void a() {
      super.c(this.k);
   }
}
